package practice.Day8;

import java.util.Scanner;

/**
 * @Author quan
 * @Description 最小公倍数
 * @Date 2023/5/15 22:06
 */
public class a01_MinCommonMultiple {
    public static void main(String[] args) {
        // 找同时能除尽两个数的最小值即可。
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int n = Math.min(a,b);
        while (true){
            if(n % a == 0 && n % b == 0){
                break;
            }else{
                n ++;
            }
        }
        System.out.println(n);
    }
}
